package com.bt7274.pojo.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @BelongsProject: bt7274-back
 * @BelongsPackage: com.bt7274.pojo.bo
 * @Author: Galland
 * @CreateTime: 2025-05-25
 * @Description: 活动更新
 * @Version: 1.0
 */
@Data
public class PromotionUpdateBO {
    @NotBlank(message = "活动ID不能为空")
    private String id;

    private String type;

    private String title;

    private String description;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    private Integer isActive;
}
